package com.travel.controller;

import com.qianfeng.util.ResultMsg;
import com.travel.service.TripService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/fonttrain")
public class FontTripController {

    @Autowired
    TripService tripService;

    @GetMapping("/onesone")
    public ResultMsg findOne(String trainId){
        return tripService.selectOne(trainId);
    }
}
